package com.qijian.maindata.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 生产领料单对象 main_item_get
 *
 * @author qijian
 * @date 2021-10-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_item_get")
public class ItemGet extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "唯一id")
    private Long id;

    /** 单据名称 */
    @Excel(name = "单据名称")
    @ApiModelProperty(value = "单据名称")
    private String name;

    /** 单据编号 */
    @Excel(name = "单据编号")
    @ApiModelProperty(value = "单据编号")
    private String number;

    /** 领料状态 */
    @Excel(name = "领料状态")
    @ApiModelProperty(value = "领料状态")
    private Integer status;

    @ApiModelProperty(value = "单据类型")
    private String type;

    @ApiModelProperty(value = "领料人")
    private String pickerName;

    @ApiModelProperty(value = "领料人")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long pickerId;

    /** 领料日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领料日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "领料日期")
    private Date getDate;

    /** 来源单据类型 */
    @ApiModelProperty(value = "来源单据类型")
    private String sourceType;

    /** 来源单据id */
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "来源单据id")
    private Long sourceId;

    /** 来源单据名称 */
    @ApiModelProperty(value = "来源单据名称")
    private String sourceName;

    /** 领料数量合计 */
    @Excel(name = "领料数量合计")
    @ApiModelProperty(value = "领料数量合计")
    private Long totalCount;

    /**
     * 库管id
     */
    @Excel(name = "库管id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "库管id")
    private Long storekeeperId;

    /**
     * 库管名称
     */
    @Excel(name = "库管名称")
    @ApiModelProperty(value = "库管名称")
    private String storekeeperName;

    /** 制单人id */
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "制单人id")
    private Long creatorId;

    /** 制单人名称 */
    @Excel(name = "制单人名称")
    @ApiModelProperty(value = "制单人名称")
    private String creatorName;

    /** 制单日期 */
    @ApiModelProperty(value = "制单日期")
    private Date creationDate;

    @ApiModelProperty(value = "领用部门")
    private Long workDeptId;

    @ApiModelProperty(value = "领用部门名称")
    private String workDeptName;



    /** 备注 */
    @ApiModelProperty(value = "备注")
    private String remark;

}
